package streamforce.crypto.event;

/**
 * representing the transformed ciphertexts emitted by the cloud, which are 
 * to be sent to the user for decryption.
 * The schema is <policy Id, ciphertext> 
 */
public class TransformedCTEventAll extends AbstractEvent{
	public static final int SELECT_PRICE = 0, SELECT_VOLUME=1, SELECT_ALL = 2;
	private int userId;
	private byte[][] originalCipher;
	private byte[][] transformedCipher;	
	private int type;
	
	public TransformedCTEventAll(int userId, int timestamp, int hour, int stockId,
			byte[][] ct, byte[][] ct1, int type) {
		super(timestamp, hour, stockId);
		this.userId = userId;
		this.originalCipher = ct;
		this.transformedCipher = ct1;
		this.timestamp = timestamp;
		this.stockId = stockId;
		this.type = type;
	}	
		
	public int getType() {
		return type;
	}


	public void setType(int type) {
		this.type = type;
	}



	public int getTimestamp() {
		return timestamp;
	}



	public void setTimestamp(int timestamp) {
		this.timestamp = timestamp;
	}



	public int getStockId() {
		return stockId;
	}



	public void setStockId(int stockId) {
		this.stockId = stockId;
	}



	public byte[][] getTransformedCipher() {
		return transformedCipher;
	}


	public void setTransformedCipher(byte[][] transformedCipher) {
		this.transformedCipher = transformedCipher;
	}


	public int getUserId() {
		return userId;
	}

	public void setUserId(int policyId) {
		this.userId = policyId;
	}


	public byte[][] getOriginalCipher() {
		return originalCipher;
	}


	public void setOriginalCipher(byte[][] originalCipher) {
		this.originalCipher = originalCipher;
	}
	
	
}
